package com.study.ssm.injection;

import com.study.ssm.injection.dao.iml.InjectionDaoImp;

/**
 * <pre>
 *     project name: SpringStudy
 *     author      : 李琼
 *     e-mail      : 1265137718@qq.com
 *     create time : 2017/9/12 下午11:39
 *     desc        : 描述--//InjectionServiceImp TODO
 *     URL         : CSDN:http://blog.csdn.net/qq_22945151
 *                   GitHub:https://github.com/a1265137718
 *     Reference   ://处理业务逻辑 --- Service
 *     modifier               :
 *     modification time      :
 *     modify remarks         :
 *
 *     @version: --//TODO
 * </pre>
 */


public class InjectionServiceImp implements InjectionService{
    private InjectionDaoImp injectionDaoImp;

    public InjectionServiceImp() {
    }

    public void setInjectionDaoImp(InjectionDaoImp injectionDaoImp) {
        this.injectionDaoImp = injectionDaoImp;
    }

    public InjectionServiceImp(InjectionDaoImp injectionDaoImp) {
        this.injectionDaoImp = injectionDaoImp;
    }

    @Override
    public void save(String args) {
        System.out.println("模拟Service接收来着客户端的数据操作"+args);
        String resultData = args + "--" + args.hashCode();//模拟业务逻辑对数据进行处理
        injectionDaoImp.save(resultData);
    }
}
